package com.bjpowernode.shop.config;

import com.bjpowernode.shop.constants.QueueConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitMqConfig {
    @Bean
    public Queue SmsMessQueue() {
        return new Queue(QueueConstants.PHONE_SMS_QUEUE);
    }

    @Bean
    public Queue WxMsgQueue() {
        return new Queue(QueueConstants.WX_MSG_QUEUE);
    }
}
